export default{
    gettime: function () {                      //时间轴
        //获取当前时间戳
        var timestamp = Date.parse(new Date());
        timestamp = timestamp / 1000;
        //获取当前时间
        var n = timestamp * 1000;
        var date = new Date(n);
        //年
        var Y = date.getFullYear().toString();
        //月
        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1).toString();
        //日
        var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate().toString();
        //时
        var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours().toString();
        //分
        var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes().toString();
        //秒
        var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds().toString();
        var time_ = Y + M + D + h + m + s;
        //this.globalData.time_ = time_;
        return time_;
      },
      globalData:function(){
          return 'appkey=fd9c29d4addd0eb08696';
      }
}